#! /usr/bin/env python
"""NMDB data format"""

# NMDB class
#
# Copyright (C) 2011-2013 Christian T. Steigies <steigies@physik.uni-kiel.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

__author__ = "Christian T. Steigies <steigies@physik.uni-kiel.de>"
__license__ = "GPL License"


## --------------------------------------------------------------------------
#import MySQLdb # python-mysqldb

#import os
#import sys
# http://docs.python.org/library/datetime.html
#import datetime
#import calendar

#from tools.datetool import parse_date

#__all__ = ["", ""]

## --------------------------------------------------------------------------


class NMDBdata(object):
    """read data of station"""
    def __init__(self, dt, length, uncorr, p_mbar, corr_p, corr_e, version=None ):
        self.datetime = dt
        self.len      = length
        self.u        = uncorr
        self.p        = p_mbar
        self.c        = corr_p
        self.e        = corr_e
        self.version  = version

        
    def show(self):
        """print"""        
        #print "nmdb show",
        #print "%s %i %.2f %.2f %.2f %.2f" % (self.datetime, self.len, self.u, self.p, self.c, self.e, self.version)
        print (self.datetime, self.len, "U:", self.u, "P:", self.p, "C:", self.c, "E:", self.e, "V:", self.version)

## --------------------------------------------------------------------------
if __name__ == "__main__":
    print "This is the nmdb_class module."

